<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

	<head>
		<base href="<%=basePath%>">

		<title>试题更新页面</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" href="css/font-awesome/css/font-awesome.css" />
		<link rel="stylesheet" href="css/common.css" />
		<link rel="stylesheet" href="css/contenRight.css" />
		<link rel="stylesheet" href="css/responsive.css" />
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/index.js"></script>
		<script type="text/javascript" src="js/app.js"></script>
		<link rel="stylesheet" href="css/pulg/jquery-ui/jquery-ui.min.css" />
		<script type="text/javascript" src="css/pulg/jquery-ui/jquery-ui.min.js"></script>
		<script type="text/javascript">
			function submitFrom() {
				$("#submitForm").attr("action", "subjectUpadate");
				$("#submitForm").submit();

			}
			$(function() {
				$("#questionRadioGloup").buttonset();
			});

			
		</script>
	</head>

	<body style="overflow:-Scroll;overflow-x:hidden;overflow-y: hidden;">
		<div class="list-page">
			<div class="list-page-content">
				<div class="taskTabs">
					<ul class="taskOptions">
						<li>
							<a class="btnlist tabs selected" href="#overtime0" id="taskList">
								<i class="icon-user"></i> 修改试题信息
							</a>
						</li>
					</ul>
					<div class="clear"></div>

					<div id="overtime0" class="task" data-pattern="priority-cloumns" style="display: none;">
						<div class="editPage">
							<div class="editPages">
								<div class="editPageTitle">
									<p class="titleLeft">
										<i class="icon-list-alt"></i>
										<span>修改试题</span>
									</p>
									<p class="titleRight">
										<i class="toggleBox icon-chevron-up"></i>
									</p>
									<div class="clear"></div>
								</div>

								<div class="editPageInfo" style="display: block;">
									<form class="form-horizontal editForm" id="submitForm">
										<div class="control-group">
											<label class="control-label">
											<span class="necessary">*</span>
											试题题干：
											</label>
											<div class="controls">
												<input name="subjectID" type="hidden" value="${subject.subjectID}" />
												<input class="m-wrap editP" name="subjectTitle" type="text" placeholder="请输入题目！" value="${subject.subjectTitle}" />
											</div>
										</div>
										<div class="control-group">
											<label class="control-label">
											<span class="necessary">*</span>
											选项A：
											</label>
											<div class="controls">
												<input class="m-wrap editP" name="subjectOptionA" type="text" value="${subject.subjectOptionA} " />
											</div>
										</div>
										<div class="control-group">
											<label class="control-label">
											<span class="necessary">*</span>
											选项B：
											</label>
											<div class="controls">
												<input class="m-wrap editP" name="subjectOptionB" type="text" value="${subject.subjectOptionB} " />
											</div>
										</div>
										<div class="control-group">
											<label class="control-label">
											<span class="necessary">*</span>
											选项C：
											</label>
											<div class="controls">
												<input class="m-wrap editP" name="subjectOptionC" type="text" value="${subject.subjectOptionC} " />
											</div>
										</div>
										<div class="control-group">
											<label class="control-label">
											<span class="necessary">*</span>
											选项D：
											</label>
											<div class="controls">
												<input class="m-wrap editP" name="subjectOptionD" type="text" value="${subject.subjectOptionD} " />
											</div>
										</div>
										<div class="control-group">
											<label class="control-label"><span class="necessary">*</span>答案：</label>
											<div class="controls" id="questionRadioGloup">
												<label for="answerRadio1_edit" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only " role="button">
													<span class="ui-button-text">A</span>
												</label>
												<input type="radio" id="answerRadio1_edit" name="subjectAnswer" value="A" class="ui-helper-hidden-accessible" ${subject.subjectAnswer=="A" ? "checked" : ""} />
												<label for="answerRadio2_edit" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only " role="button">
													<span class="ui-button-text">B</span>
												</label>
												<input type="radio" id="answerRadio2_edit" name="subjectAnswer" value="B" class="ui-helper-hidden-accessible" ${subject.subjectAnswer=="B" ? "checked" : "" }/>
												<label for="answerRadio3_edit" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only " role="button">
													<span class="ui-button-text">C</span>
												</label>
												<input type="radio" id="answerRadio3_edit" name="subjectAnswer" value="C" class="ui-helper-hidden-accessible" ${subject.subjectAnswer=="C" ? "checked" : ""}/>
												<label for="answerRadio4_edit" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only " role="button">
													<span class="ui-button-text">D</span>
												</label>
												<input type="radio" id="answerRadio4_edit" name="subjectAnswer" value="D" class="ui-helper-hidden-accessible" ${subject.subjectAnswer=="D" ? "checked" : ""}/>
											</div>
										</div>
										<div class="control-group">
											<label class="control-label">
												答案解析：
											</label>
											<div class="controls">
												<textarea rows cols class="m-wrap editP" name="subjectParse" placeholder="请输入答案解析!">${subject.subjectParse}</textarea>
											</div>
										</div>
									</form>

								</div>
							</div>
							<div class="submitBtn">
								<a class="btn blue btnEdit editP" onclick="submitFrom()">
									<i class="icon-ok"></i>提交
								</a>
								<a class="btn btnReturn" href="subjectQuery">
									<i class="icon-backward"></i>返回
								</a>
							</div>

						</div>
					</div>

				</div>

			</div>
		</div>
	</body>

</html>